export const form = [
  {
    name: '表单',
    type: 'form',
    styleList: [
      {
        type: 'group',
        name: '电脑端设置',
        children: [
          {
            name: '行内模式',
            fieldName: 'inline',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: '行内表单模式'
          },
          {
            name: '表单尺寸',
            fieldName: 'size',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '默认', key: ''},
              {value: '大型', key: 'large'},
              {value: '中型', key: 'default'},
              {value: '小型', key: 'small'}
            ],
            description: '用于控制该表单内组件的尺寸'
          },
          {
            name: '标签对齐',
            fieldName: 'labelPosition',
            fieldType: 'buttons',
            default: 'right',
            options: [
              {value: '左对齐', key: 'left'},
              {value: '右对齐', key: 'right'},
              {value: '上对齐', key: 'top'}
            ],
            description: '表单域标签的位置， 当设置为 左边 或 右边 时，则也需要设置 标签长度 属性'
          },
          {
            name: '标签长度',
            fieldName: 'labelWidth',
            fieldType: 'number',
            default: 120,
            point: 0,
            description: '表单域标签标签长度'
          },
          {
            name: '标签后缀',
            fieldName: 'labelSuffix',
            fieldType: 'input',
            default: '',
            description: '表单域标签的后缀'
          },
          {
            name: '禁止编辑',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
          },
          {
            name: '隐藏星号',
            fieldName: 'hideRequiredAsterisk',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            show: (data) => data['disabled'] === false,
            description: '是否隐藏必填字段标签旁边的红色星号'
          },
          {
            name: '星号位置',
            fieldName: 'requireAsteriskPosition',
            fieldType: 'buttons',
            default: 'left',
            options: [
              {value: '左边', key: 'left'},
              {value: '右边', key: 'right'},
            ],
            show: (data) => data['disabled'] === false
                && data['hideRequiredAsterisk'] === false,
          }
        ]
      },
      {
        type: 'group',
        name: '应用设置',
        children: [
          {
            name: '提示方式',
            fieldName: 'errShowType',
            fieldType: 'buttons',
            default: 'undertext',
            options: [
              {value: '底部', key: 'undertext'},
              {value: '消息', key: 'toast'},
              {value: '弹窗', key: 'modal'}
            ],
            description: '表单错误信息提示方式'
          },
          {
            name: '标签位置',
            fieldName: 'labelPosition',
            fieldType: 'buttons',
            default: 'top',
            options: [
              {value: '左侧', key: 'left'},
              {value: '上方', key: 'top'}
            ],
            description: '表单域提示文字的位置'
          },
          {
            name: '标签长度',
            fieldName: 'labelWidth',
            fieldType: 'number',
            default: 120,
            point: 0,
            show: data => data['labelPosition'] === 'left',
            description: '表单域标签标签长度'
          },
          {
            name: '对齐方式',
            fieldName: 'labelAlign',
            fieldType: 'buttons',
            default: 'right',
            options: [
              {value: '左侧', key: 'left'},
              {value: '中间', key: 'center'},
              {value: '右侧', key: 'right'}
            ],
            show: data => data['labelPosition'] === 'left',
            description: '标签对齐方式'
          }
        ]
      }
    ]
  },
  {
    name: '表单项',
    type: 'form-item',
    styleList: [
      {
        type: 'group',
        name: '电脑端设置',
        children: [
          {
            name: '标签文本',
            fieldName: 'label',
            fieldType: 'input',
            default: ''
          },
          {
            name: '标签长度',
            fieldName: 'labelWidth',
            fieldType: 'number',
            default: 120,
            point: 0,
            description: '表单域标签标签长度'
          },
          {
            name: '描述',
            fieldName: 'description',
            fieldType: 'input',
            description: '帮助图标显示的描述信息'
          }
        ]
      },
      {
        type: 'group',
        name: '应用设置',
        children: [
          {
            name: '标签文本',
            fieldName: 'label',
            fieldType: 'input',
            default: ''
          },
          {
            name: '标签长度',
            fieldName: 'labelWidth',
            fieldType: 'number',
            default: 120,
            point: 0,
            description: '表单域标签标签长度'
          },
          {
            name: '对齐方式',
            fieldName: 'labelAlign',
            fieldType: 'buttons',
            default: 'right',
            options: [
              {value: '左侧', key: 'left'},
              {value: '中间', key: 'center'},
              {value: '右侧', key: 'right'}
            ],
            description: '标签对齐方式'
          }
        ]
      }
    ]
  },
  {
    name: '单行文本框',
    type: 'form-input',
    formItem: '1',
    inputData: true,
    fieldList: '内容',
    eventList: '初始化事件,变更事件',
    defaultObject: true,
    styleList: [
      {
        type: 'group',
        name: '电脑端设置',
        children: [
          {
            name: '尺寸',
            fieldName: 'size',
            fieldType: 'select',
            default: '',
            options: [
              {value: '默认', key: ''},
              {value: '大型', key: 'large'},
              {value: '中型', key: 'default'},
              {value: '小型', key: 'small'}
            ]
          },
          {
            name: '最小长度',
            fieldName: 'minlength',
            fieldType: 'number',
            description: '原生属性，最小输入长度'
          },
          {
            name: '最大长度',
            fieldName: 'maxlength',
            fieldType: 'number',
            description: '最大输入长度'
          },
          {
            name: '占位文本',
            fieldName: 'placeholder',
            fieldType: 'input',
            default: '',
            description: '输入框占位文本'
          },
          {
            name: '背景颜色',
            fieldName: 'background-color',
            fieldType: 'color-picker',
          },
          {
            name: '前缀图标',
            fieldName: 'prefixIcon',
            fieldType: 'icon-select',
            iconSize: '20',
            default: '',
            description: '自定义前缀图标'
          },
          {
            name: '后缀图标',
            fieldName: 'suffixIcon',
            fieldType: 'icon-select',
            iconSize: '20',
            default: '',
            description: '自定义后缀图标'
          },
          {
            name: '显示边框',
            fieldName: 'border',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否隐藏',
            fieldName: 'hidden',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '清除按钮',
            fieldName: 'clearable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: '是否显示清除按钮'
          },
          {
            name: '是否只读',
            fieldName: 'readonly',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '统计字数',
            fieldName: 'showWordLimit',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: '是否显示统计字数'
          },
          {
            name: '自动填充',
            fieldName: 'autocomplete',
            fieldType: 'switch',
            default: 'off',
            options: [
              {value: '', key: 'on'},
              {value: '', key: 'off'}
            ],
            description: '原生 autocomplete 属性'
          }
        ]
      },
      {
        type: 'group',
        name: '应用设置',
        children: [
          {
            name: '最大长度',
            fieldName: 'maxlength',
            fieldType: 'number',
            description: '最大输入长度'
          },
          {
            name: '占位文本',
            fieldName: 'placeholder',
            fieldType: 'input',
            default: '',
            description: '输入框占位文本'
          },
          {
            name: '背景颜色',
            fieldName: 'background-color',
            fieldType: 'color-picker',
          },
          {
            name: '前缀图标',
            fieldName: 'prefixIcon',
            fieldType: 'icon-select',
            iconSize: '20',
            default: '',
            description: '自定义前缀图标'
          },
          {
            name: '后缀图标',
            fieldName: 'suffixIcon',
            fieldType: 'icon-select',
            iconSize: '20',
            default: '',
            description: '自定义后缀图标'
          },
          {
            name: '显示边框',
            fieldName: 'border',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '清除按钮',
            fieldName: 'clearable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: '是否显示清除按钮'
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
        ]
      }
    ]
  },
  {
    name: '多行文本框',
    type: 'form-textarea',
    formItem: '1',
    inputData: true,
    fieldList: '内容',
    eventList: '初始化事件,变更事件',
    defaultObject: true,
    styleList: [
      {
        type: 'group',
        name: '电脑端设置',
        children: [
          {
            name: '最小长度',
            fieldName: 'minlength',
            fieldType: 'number',
            description: '原生属性，最小输入长度'
          },
          {
            name: '最大长度',
            fieldName: 'maxlength',
            fieldType: 'number',
            description: '最大输入长度'
          },
          {
            name: '占位文本',
            fieldName: 'placeholder',
            fieldType: 'input',
            default: '',
            description: '输入框占位文本'
          },
          {
            name: '行数',
            fieldName: 'rows',
            fieldType: 'number',
            default: 5,
            description: '输入框行数'
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否只读',
            fieldName: 'readonly',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '统计字数',
            fieldName: 'showWordLimit',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: '是否显示统计字数'
          },
          {
            name: '自动填充',
            fieldName: 'autocomplete',
            fieldType: 'switch',
            default: 'off',
            options: [
              {value: '', key: 'on'},
              {value: '', key: 'off'}
            ],
            description: '原生 autocomplete 属性'
          }
        ]
      },
      {
        type: 'group',
        name: '应用设置',
        children: [
          {
            name: '最大长度',
            fieldName: 'maxlength',
            fieldType: 'number',
            description: '最大输入长度'
          },
          {
            name: '占位文本',
            fieldName: 'placeholder',
            fieldType: 'input',
            default: '',
            description: '输入框占位文本'
          },
          {
            name: '自动高度',
            fieldName: 'autoHeight',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: '是否自动增加高度'
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '清除按钮',
            fieldName: 'clearable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: '是否显示清除按钮'
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
        ]
      }
    ]
  },
  {
    name: '数字输入框',
    type: 'form-number',
    formItem: '1',
    inputData: true,
    fieldList: '内容',
    eventList: '初始化事件,变更事件',
    defaultObject: true,
    styleList: [
      {
        type: 'group',
        name: '电脑端设置',
        children: [
          {
            name: '尺寸',
            fieldName: 'size',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '默认', key: ''},
              {value: '大型', key: 'large'},
              {value: '中型', key: 'default'},
              {value: '小型', key: 'small'}
            ],
          },
          {
            name: '最小值',
            fieldName: 'min',
            fieldType: 'number',
          },
          {
            name: '最大值',
            fieldName: 'max',
            fieldType: 'number',
          },
          {
            name: '小数位数',
            fieldName: 'precision',
            fieldType: 'number',
            default: 0,
            description: '最多可以有多少位小数'
          },
          {
            name: '占位文本',
            fieldName: 'placeholder',
            fieldType: 'input',
            default: '',
            description: '输入框占位文本'
          },
          {
            name: '前缀图标',
            fieldName: 'prefixIcon',
            fieldType: 'icon-select',
            iconSize: '20',
            default: '',
            description: '自定义前缀图标'
          },
          {
            name: '后缀图标',
            fieldName: 'suffixIcon',
            fieldType: 'icon-select',
            iconSize: '20',
            default: '',
            description: '自定义后缀图标'
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否只读',
            fieldName: 'readonly',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '自动填充',
            fieldName: 'autocomplete',
            fieldType: 'switch',
            default: 'off',
            options: [
              {value: '', key: 'on'},
              {value: '', key: 'off'}
            ],
            description: '原生 autocomplete 属性'
          }
        ]
      },
      {
        type: 'group',
        name: '应用设置',
        children: [
          {
            name: '最小值',
            fieldName: 'min',
            fieldType: 'number',
          },
          {
            name: '最大值',
            fieldName: 'max',
            fieldType: 'number',
          },
          {
            name: '小数位数',
            fieldName: 'precision',
            fieldType: 'number',
            default: 2
          },
          {
            name: '占位文本',
            fieldName: 'placeholder',
            fieldType: 'input',
            default: '',
            description: '输入框占位文本'
          },
          {
            name: '前缀图标',
            fieldName: 'prefixIcon',
            fieldType: 'icon-select',
            iconSize: '20',
            default: '',
            description: '自定义前缀图标'
          },
          {
            name: '后缀图标',
            fieldName: 'suffixIcon',
            fieldType: 'icon-select',
            iconSize: '20',
            default: '',
            description: '自定义后缀图标'
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '清除按钮',
            fieldName: 'clearable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: '是否显示清除按钮'
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      }
    ]
  },
  {
    name: '密码框',
    type: 'form-password',
    formItem: '1',
    inputData: true,
    fieldList: '内容',
    eventList: '初始化事件,变更事件',
    defaultObject: true,
    styleList: [
      {
        type: 'group',
        name: '电脑端设置',
        children: [
          {
            name: '尺寸',
            fieldName: 'size',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '默认', key: ''},
              {value: '大型', key: 'large'},
              {value: '中型', key: 'default'},
              {value: '小型', key: 'small'}
            ]
          },
          {
            name: '最小长度',
            fieldName: 'minlength',
            fieldType: 'number',
            description: '原生属性，最小输入长度'
          },
          {
            name: '最大长度',
            fieldName: 'maxlength',
            fieldType: 'number',
            description: '最大输入长度'
          },
          {
            name: '占位文本',
            fieldName: 'placeholder',
            fieldType: 'input',
            default: '',
            description: '输入框占位文本'
          },
          {
            name: '前缀图标',
            fieldName: 'prefixIcon',
            fieldType: 'icon-select',
            iconSize: '20',
            default: '',
            description: '自定义前缀图标'
          },
          {
            name: '后缀图标',
            fieldName: 'suffixIcon',
            fieldType: 'icon-select',
            iconSize: '20',
            default: '',
            description: '自定义后缀图标'
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '清除按钮',
            fieldName: 'clearable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: '是否显示清除按钮'
          },
          {
            name: '是否只读',
            fieldName: 'readonly',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '显示密码',
            fieldName: 'showPassword',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: '是否显示切换密码图标'
          },
          {
            name: '自动填充',
            fieldName: 'autocomplete',
            fieldType: 'switch',
            default: 'off',
            options: [
              {value: '', key: 'on'},
              {value: '', key: 'off'}
            ],
            description: '原生 autocomplete 属性'
          }
        ]
      },
      {
        type: 'group',
        name: '应用设置',
        children: [
          {
            name: '最大长度',
            fieldName: 'maxlength',
            fieldType: 'number',
            description: '最大输入长度'
          },
          {
            name: '占位文本',
            fieldName: 'placeholder',
            fieldType: 'input',
            default: '',
            description: '输入框占位文本'
          },
          {
            name: '前缀图标',
            fieldName: 'prefixIcon',
            fieldType: 'icon-select',
            iconSize: '20',
            default: '',
            description: '自定义前缀图标'
          },
          {
            name: '后缀图标',
            fieldName: 'suffixIcon',
            fieldType: 'icon-select',
            iconSize: '20',
            default: '',
            description: '自定义后缀图标'
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '清除按钮',
            fieldName: 'clearable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: '是否显示清除按钮'
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '显示密码',
            fieldName: 'showPassword',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: '是否显示切换密码图标'
          },
        ]
      }
    ]
  },
  {
    name: '下拉框',
    type: 'form-select',
    formItem: '1',
    inputData: true,
    fieldList: '内容',
    eventList: '初始化事件,变更事件',
    defaultObject: true,
    styleList: [
      {
        type: 'group',
        name: '电脑端设置',
        children: [
          {
            name: '尺寸',
            fieldName: 'size',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '默认', key: ''},
              {value: '大型', key: 'large'},
              {value: '中型', key: 'default'},
              {value: '小型', key: 'small'}
            ]
          },
          {
            name: '占位文本',
            fieldName: 'placeholder',
            fieldType: 'input',
            default: '--请选择--',
            description: '输入框占位文本'
          },
          {
            name: '数据来源',
            fieldName: 'dataSource',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '枚举', key: 'enum'},
              {value: '字典', key: 'dict'},
              {value: '数据模型', key: 'dataModel'},
            ]
          },
          {
            name: '来源枚举',
            fieldName: 'enumValue',
            fieldType: 'input',
            default: '',
            show: (data) => data['dataSource'] === 'enum',
            description: '多个枚举值时以“,”分割（英文逗号）'
          },
          {
            name: '来源字典',
            fieldName: 'dictCode',
            fieldType: 'dict-tree',
            default: '',
            show: (data) => data['dataSource'] === 'dict'
          },
          {
            name: '数据模型',
            fieldName: 'dataModelId',
            fieldType: 'tree',
            default: '',
            dataUrl: "/system/dataModel/queryTree",
            typeSelect: "model",
            show: (data) => data['dataSource'] === 'dataModel',
          },
          {
            name: '值字段',
            fieldName: 'value',
            fieldType: 'select',
            default: '',
            options: (data) => data['dataSource'] === 'dataModel' ? data['fieldOptions'] : '',
            show: (data) => data['dataSource'] === 'dataModel'
          },
          {
            name: '显示字段',
            fieldName: 'label',
            fieldType: 'select',
            default: '',
            options: (data) => data['dataSource'] === 'dataModel' ? data['fieldOptions'] : '',
            show: (data) => data['dataSource'] === 'dataModel'
          },
          {
            name: '默认值',
            fieldName: 'default',
            fieldType: (data) => data['dataSource'] === 'enum' || data['dataSource'] === 'dataModel'
                ? 'select' : 'dict-select',
            dictCode: (data) => data['dataSource'] === 'dict' ? data['dictCode']: '',
            options: (data) => data['dataSource'] === 'enum'
                ? data['enumValue'] : (data['dataSource'] === 'dataModel' ? (data['fieldValueOptions'] || '') : ''),
            default: '',
            show: (data) => !data['multiple']
          },
          {
            name: '默认值',
            fieldName: 'default',
            fieldType: (data) => data['dataSource'] === 'enum' || data['dataSource'] === 'dataModel'
                ? 'selects' : 'dict-selects',
            dictCode: (data) => data['dataSource'] === 'dict' ? data['dictCode']: '',
            options: (data) => data['dataSource'] === 'enum'
                ? data['enumValue'] : (data['dataSource'] === 'dataModel' ? (data['fieldValueOptions'] || '') : ''),
            default: '',
            show: (data) => !!data['multiple']
          },
          {
            name: '可否多选',
            fieldName: 'multiple',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: 'Select 组件是否可多选'
          },
          {
            name: '可否筛选',
            fieldName: 'filterable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: 'Select 组件是否可筛选'
          },
          {
            name: '允许创建',
            fieldName: 'allow-create',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            show: (data) => data['filterable'] === true,
            description: '是否允许用户创建新条目， 只有当 filterable 设置为 true 时才会生效'
          },
          {
            name: '输入框同宽',
            fieldName: 'fit-input-width',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: '下拉框的宽度是否与输入框相同'
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '清除按钮',
            fieldName: 'clearable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: '是否显示清除按钮'
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '自动填充',
            fieldName: 'autocomplete',
            fieldType: 'switch',
            default: 'off',
            options: [
              {value: '', key: 'on'},
              {value: '', key: 'off'}
            ],
            description: '原生 autocomplete 属性'
          }
        ]
      },
      {
        type: 'group',
        name: '应用设置',
        children: [
          {
            name: '占位文本',
            fieldName: 'label',
            fieldType: 'input',
            default: '--请选择--',
            description: '输入框占位文本'
          },
          {
            name: '数据来源',
            fieldName: 'dataSource',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '枚举', key: 'enum'},
              {value: '字典', key: 'dict'},
              {value: '数据模型', key: 'dataModel'},
            ]
          },
          {
            name: '来源枚举',
            fieldName: 'enumValue',
            fieldType: 'input',
            default: '',
            show: (data) => data['dataSource'] === 'enum',
            description: '多个枚举值时以“,”分割（英文逗号）'
          },
          {
            name: '来源字典',
            fieldName: 'dictCode',
            fieldType: 'dict-tree',
            default: '',
            show: (data) => data['dataSource'] === 'dict'
          },
          {
            name: '数据模型',
            fieldName: 'dataModelId',
            fieldType: 'tree',
            default: '',
            dataUrl: "/system/dataModel/queryTree",
            typeSelect: "model",
            show: (data) => data['dataSource'] === 'dataModel',
          },
          {
            name: '值字段',
            fieldName: 'value',
            fieldType: 'select',
            default: '',
            options: (data) => data['dataSource'] === 'dataModel' ? data['fieldOptions'] : '',
            show: (data) => data['dataSource'] === 'dataModel'
          },
          {
            name: '显示字段',
            fieldName: 'label',
            fieldType: 'select',
            default: '',
            options: (data) => data['dataSource'] === 'dataModel' ? data['fieldOptions'] : '',
            show: (data) => data['dataSource'] === 'dataModel'
          },
          {
            name: '默认值',
            fieldName: 'default',
            fieldType: (data) => data['dataSource'] === 'enum' || data['dataSource'] === 'dataModel'
                ? 'select' : 'dict-select',
            dictCode: (data) => data['dataSource'] === 'dict' ? data['dictCode']: '',
            options: (data) => data['dataSource'] === 'enum'
                ? data['enumValue'] : (data['dataSource'] === 'dataModel' ? (data['fieldValueOptions'] || '') : ''),
            default: '',
            show: (data) => !data['multiple']
          },
          {
            name: '默认值',
            fieldName: 'default',
            fieldType: (data) => data['dataSource'] === 'enum' || data['dataSource'] === 'dataModel'
                ? 'selects' : 'dict-selects',
            dictCode: (data) => data['dataSource'] === 'dict' ? data['dictCode']: '',
            options: (data) => data['dataSource'] === 'enum'
                ? data['enumValue'] : (data['dataSource'] === 'dataModel' ? (data['fieldValueOptions'] || '') : ''),
            default: '',
            show: (data) => !!data['multiple']
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '清除按钮',
            fieldName: 'clearable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: '是否显示清除按钮'
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      }
    ]
  },
  {
    name: '单选框',
    type: 'form-radio',
    formItem: '1',
    inputData: true,
    fieldList: '内容',
    eventList: '初始化事件,变更事件',
    defaultObject: true,
    styleList: [
      {
        type: 'group',
        name: '电脑端设置',
        children: [
          {
            name: '尺寸',
            fieldName: 'size',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '默认', key: ''},
              {value: '大型', key: 'large'},
              {value: '中型', key: 'default'},
              {value: '小型', key: 'small'}
            ]
          },
          {
            name: '数据来源',
            fieldName: 'dataSource',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '枚举', key: 'enum'},
              {value: '字典', key: 'dict'},
            ]
          },
          {
            name: '来源枚举',
            fieldName: 'enumValue',
            fieldType: 'input',
            default: '',
            show: (data) => data['dataSource'] === 'enum',
            description: '多个枚举值时以“,”分割（英文逗号）'
          },
          {
            name: '来源字典',
            fieldName: 'dictCode',
            fieldType: 'dict-tree',
            default: '',
            show: (data) => data['dataSource'] === 'dict'
          },
          {
            name: '默认值',
            fieldName: 'default',
            fieldType: (data) => data['dataSource'] === 'enum' ? 'radio' : 'dict-radio',
            dictCode: (data) => data['dataSource'] === 'dict' ? data['dictCode']: '',
            options: (data) => data['dataSource'] === 'enum' ? data['enumValue'] : '',
            default: '',
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      },
      {
        type: 'group',
        name: '应用设置',
        children: [
          {
            name: '数据来源',
            fieldName: 'dataSource',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '枚举', key: 'enum'},
              {value: '字典', key: 'dict'},
            ]
          },
          {
            name: '来源枚举',
            fieldName: 'enumValue',
            fieldType: 'input',
            default: '',
            show: (data) => data['dataSource'] === 'enum',
            description: '多个枚举值时以“,”分割（英文逗号）'
          },
          {
            name: '来源字典',
            fieldName: 'dictCode',
            fieldType: 'dict-tree',
            default: '',
            show: (data) => data['dataSource'] === 'dict'
          },
          {
            name: '默认值',
            fieldName: 'default',
            fieldType: (data) => data['dataSource'] === 'enum' ? 'radio' : 'dict-radio',
            dictCode: (data) => data['dataSource'] === 'dict' ? data['dictCode']: '',
            options: (data) => data['dataSource'] === 'enum' ? data['enumValue'] : '',
            default: '',
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      }
    ]
  },
  {
    name: '多选框',
    type: 'form-checkbox',
    formItem: '1',
    inputData: true,
    fieldList: '内容',
    eventList: '初始化事件,变更事件',
    defaultObject: true,
    styleList: [
      {
        type: 'group',
        name: '电脑端设置',
        children: [
          {
            name: '尺寸',
            fieldName: 'size',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '默认', key: ''},
              {value: '大型', key: 'large'},
              {value: '中型', key: 'default'},
              {value: '小型', key: 'small'}
            ]
          },
          {
            name: '数据来源',
            fieldName: 'dataSource',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '枚举', key: 'enum'},
              {value: '字典', key: 'dict'},
            ]
          },
          {
            name: '来源枚举',
            fieldName: 'enumValue',
            fieldType: 'input',
            default: '',
            show: (data) => data['dataSource'] === 'enum',
            description: '多个枚举值时以“,”分割（英文逗号）'
          },
          {
            name: '来源字典',
            fieldName: 'dictCode',
            fieldType: 'dict-tree',
            default: '',
            show: (data) => data['dataSource'] === 'dict'
          },
          {
            name: '默认值',
            fieldName: 'default',
            fieldType: (data) => data['dataSource'] === 'enum' ? 'checkbox' : 'dict-checkbox',
            dictCode: (data) => data['dataSource'] === 'dict' ? data['dictCode']: '',
            options: (data) => data['dataSource'] === 'enum' ? data['enumValue'] : '',
            default: '',
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      },
      {
        type: 'group',
        name: '应用设置',
        children: [
          {
            name: '数据来源',
            fieldName: 'dataSource',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '枚举', key: 'enum'},
              {value: '字典', key: 'dict'},
            ]
          },
          {
            name: '来源枚举',
            fieldName: 'enumValue',
            fieldType: 'input',
            default: '',
            show: (data) => data['dataSource'] === 'enum',
            description: '多个枚举值时以“,”分割（英文逗号）'
          },
          {
            name: '来源字典',
            fieldName: 'dictCode',
            fieldType: 'dict-tree',
            default: '',
            show: (data) => data['dataSource'] === 'dict'
          },
          {
            name: '默认值',
            fieldName: 'default',
            fieldType: (data) => data['dataSource'] === 'enum' ? 'checkbox' : 'dict-checkbox',
            dictCode: (data) => data['dataSource'] === 'dict' ? data['dictCode']: '',
            options: (data) => data['dataSource'] === 'enum' ? data['enumValue'] : '',
            default: '',
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      }
    ]
  },
  {
    name: '富文本框',
    type: 'form-rich-editor',
    formItem: '1',
    inputData: true,
    fieldList: '内容',
    eventList: '初始化事件,变更事件',
    defaultObject: true,
    styleList: [
      {
        type: 'group',
        name: '电脑端设置',
        children: [
          {
            name: '宽度',
            fieldName: 'width',
            fieldType: 'input',
            default: '100%'
          },
          {
            name: '高度',
            fieldName: 'height',
            fieldType: 'number',
            default: 350
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      }
    ]
  },
  {
    name: '开关',
    type: 'form-switch',
    formItem: '1',
    inputData: true,
    fieldList: '内容',
    eventList: '初始化事件,变更事件',
    defaultObject: true,
    styleList: [
      {
        type: 'group',
        name: '电脑端设置',
        children: [
          {
            name: '尺寸',
            fieldName: 'size',
            fieldType: 'select',
            default: '',
            options: [
              {value: '默认', key: ''},
              {value: '大型', key: 'large'},
              {value: '中型', key: 'default'},
              {value: '小型', key: 'small'}
            ]
          },
          {
            name: '数据来源',
            fieldName: 'dataSource',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '枚举', key: 'enum'},
              {value: '字典', key: 'dict'},
            ]
          },
          {
            name: '来源枚举',
            fieldName: 'enumValue',
            fieldType: 'input',
            default: '',
            show: (data) => data['dataSource'] === 'enum',
            description: '多个枚举值时以“,”分割（英文逗号）'
          },
          {
            name: '来源字典',
            fieldName: 'dictCode',
            fieldType: 'dict-tree',
            default: '',
            show: (data) => data['dataSource'] === 'dict'
          },
          {
            name: '默认值',
            fieldName: 'default',
            fieldType: (data) => data['dataSource'] === 'enum' ? 'switch' : 'dict-switch',
            dictCode: (data) => data['dataSource'] === 'dict' ? data['dictCode']: '',
            options: (data) => data['dataSource'] === 'enum' ? data['enumValue'] : '',
            default: '',
          },
          {
            name: '显示点内',
            fieldName: 'inline-prompt',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: '无论图标或文本是否显示在点内，只会呈现文本的第一个字符'
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: '是否必填'
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      }
    ]
  },
  {
    name: '日期选择',
    type: 'form-date',
    formItem: '1',
    inputData: true,
    fieldList: '内容',
    eventList: '初始化事件,变更事件',
    defaultObject: true,
    styleList: [
      {
        type: 'group',
        name: '电脑端设置',
        children: [
          {
            name: '尺寸',
            fieldName: 'size',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '默认', key: ''},
              {value: '大型', key: 'large'},
              {value: '中型', key: 'default'},
              {value: '小型', key: 'small'}
            ]
          },
          {
            name: '占位文本',
            fieldName: 'placeholder',
            fieldType: 'input',
            default: '--请选择--',
            description: '输入框占位文本'
          },
          {
            name: '显示格式',
            fieldName: 'format',
            fieldType: 'input',
            default: 'YYYY-MM-DD',
            description: '显示在输入框中的格式'
          },
          {
            name: '传值格式',
            fieldName: 'value-format',
            fieldType: 'input',
            default: 'YYYY-MM-DD',
            description: '可选，绑定值的格式。 不指定则绑定值为 Date 对象'
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '可否输入',
            fieldName: 'editable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '清除按钮',
            fieldName: 'clearable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      },
      {
        type: 'group',
        name: '应用设置',
        children: [
          {
            name: '占位文本',
            fieldName: 'placeholder',
            fieldType: 'input',
            default: '--请选择--',
            description: '输入框占位文本'
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      }
    ]
  },
  {
    name: '日期范围',
    type: 'form-date-range',
    formItem: '1',
    inputData: true,
    fieldList: '内容',
    eventList: '初始化事件,变更事件',
    defaultObject: true,
    styleList: [
      {
        type: 'group',
        name: '电脑端设置',
        children: [
          {
            name: '尺寸',
            fieldName: 'size',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '默认', key: ''},
              {value: '大型', key: 'large'},
              {value: '中型', key: 'default'},
              {value: '小型', key: 'small'}
            ]
          },
          {
            name: '开始占位',
            fieldName: 'start-placeholder',
            fieldType: 'input',
            default: '开始日期',
            description: '范围选择时开始日期的占位内容'
          },
          {
            name: '结束占位',
            fieldName: 'end-placeholder',
            fieldType: 'input',
            default: '结束日期',
            description: '范围选择时结束日期的占位内容'
          },
          {
            name: '显示格式',
            fieldName: 'format',
            fieldType: 'input',
            default: 'YYYY-MM-DD',
            description: '显示在输入框中的格式'
          },
          {
            name: '传值格式',
            fieldName: 'value-format',
            fieldType: 'input',
            default: 'YYYY-MM-DD',
            description: '可选，绑定值的格式。 不指定则绑定值为 Date 对象'
          },
          {
            name: '分隔符',
            fieldName: 'range-separator',
            fieldType: 'input',
            default: '至',
            description: '选择范围时的分隔符'
          },
          {
            name: '默认值',
            fieldName: 'default',
            fieldType: 'input',
            default: '',
            description: '默认值格式：2025-01-01 或者 2025-01-01,2025-02-01'
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '可否输入',
            fieldName: 'editable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '清除按钮',
            fieldName: 'clearable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      },
      {
        type: 'group',
        name: '应用设置',
        children: [
          {
            name: '开始占位文本',
            fieldName: 'start-placeholder',
            fieldType: 'input',
            default: '',
            description: '开始日期的占位内容'
          },
          {
            name: '结束占位文本',
            fieldName: 'end-placeholder',
            fieldType: 'input',
            default: '',
            description: '结束日期的占位内容'
          },
          {
            name: '默认值',
            fieldName: 'default',
            fieldType: 'input',
            default: '',
            description: '默认值格式：2025-01-01 或者 2025-01-01,2025-02-01'
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      }
    ]
  },
  {
    name: '评分',
    type: 'form-rate',
    formItem: '1',
    inputData: true,
    fieldList: '内容',
    eventList: '初始化事件,变更事件',
    defaultObject: true,
    styleList: [
      {
        type: 'group',
        name: '电脑端设置',
        children: [
          {
            fieldName: 'size',
            name: '尺寸',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '默认', key: ''},
              {value: '大型', key: 'large'},
              {value: '中型', key: 'default'},
              {value: '小型', key: 'small'}
            ]
          },
          {
            name: '最大分值',
            fieldName: 'max',
            fieldType: 'number',
            default: 5,
          },
          {
            name: '低中界值',
            fieldName: 'low-threshold',
            fieldType: 'number',
            default: 2,
            description: '低分和中等分数的界限值， 值本身被划分在低分中'
          },
          {
            name: '中高界值',
            fieldName: 'high-threshold',
            fieldType: 'number',
            default: 4,
            description: '高分和中等分数的界限值， 值本身被划分在高分中'
          },
          {
            name: '界值颜色',
            fieldName: 'colors',
            fieldType: 'input',
            default: '',
            description: 'icon 的颜色。 若传入数组，共有 3 个元素，为 3 个分段所对应的颜色；若传入对象，可自定义分段，键名为分段的界限值，键值为对应的颜色'
          },
          {
            name: '是否半选',
            fieldName: 'allow-half',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: '是否允许半选'
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      },
      {
        type: 'group',
        name: '应用设置',
        children: [
          {
            name: '尺寸',
            fieldName: 'fontSize',
            fieldType: 'number',
            default: 18
          },
          {
            name: '最大分值',
            fieldName: 'max',
            fieldType: 'number',
            default: 5,
          },
          {
            name: '未选中颜色',
            fieldName: 'color',
            fieldType: 'color-picker',
            description: '未选中的颜色'
          },
          {
            name: '选中颜色',
            fieldName: 'activeColor',
            fieldType: 'color-picker',
            description: '选中状态下的颜色'
          },
          {
            name: '间距',
            fieldName: 'startMargin',
            fieldType: 'number',
            default: 4,
            description: '星星之间的距离'
          },
          {
            name: '最小值',
            fieldName: 'minCount',
            fieldType: 'number',
            default: 1,
            description: '最少选中星星的个数'
          },
          {
            name: '是否半选',
            fieldName: 'allowHalf',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ],
            description: '是否允许半星选择'
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否只读',
            fieldName: 'readonly',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      }
    ]
  },
  {
    name: '图片控件',
    type: 'form-image',
    formItem: '1',
    inputData: true,
    fieldList: '内容',
    defaultObject: true,
    eventList: '初始化事件,变更事件',
    styleList: [
      {
        type: 'group',
        name: '电脑端设置',
        children: [
          {
            name: '图片大小',
            fieldName: 'limitSize',
            fieldType: 'number',
            default: 100,
            description: '图片上传大小限制，单位为：MB'
          },
          {
            name: '宽度',
            fieldName: 'width',
            fieldType: 'input',
            default: '100px'
          },
          {
            name: '高度',
            fieldName: 'height',
            fieldType: 'input',
            default: '100px'
          },
          {
            name: '可否裁剪',
            fieldName: 'cropper',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '裁剪宽度',
            fieldName: 'cropper.width',
            fieldType: 'number',
            default: 160,
            show: data => data['cropper']
          },
          {
            name: '裁剪高度',
            fieldName: 'cropper.height',
            fieldType: 'number',
            default: 90,
            show: data => data['cropper']
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否只读',
            fieldName: 'readonly',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      },
      {
        type: 'group',
        name: '应用设置',
        children: [
          {
            name: '图片大小',
            fieldName: 'limitSize',
            fieldType: 'number',
            default: 100,
            description: '图片上传大小限制，单位为：MB'
          },
          {
            name: '宽度',
            fieldName: 'width',
            fieldType: 'input',
            default: '100px'
          },
          {
            name: '高度',
            fieldName: 'height',
            fieldType: 'input',
            default: '100px'
          },
          {
            name: '形状',
            fieldName: 'shape',
            fieldType: 'buttons',
            default: 'circle',
            options: [
              {value: '方形', key: 'square'},
              {value: '圆型', key: 'circle'}
            ]
          },
          {
            name: '圆角',
            fieldName: 'radius',
            fieldType: 'number',
            default: 0
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否只读',
            fieldName: 'readonly',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      }
    ]
  },
  {
    type: 'form-affix',
    name: '附件控件',
    formItem: '1',
    inputData: true,
    fieldList: '内容',
    eventList: '初始化事件,变更事件',
    styleList: [
      {
        type: 'group',
        name: '组件设置',
        children: [
          {
            name: '文件大小',
            fieldName: 'limitSize',
            fieldType: 'number',
            default: 100,
            description: '文件上传大小限制，单位为：MB'
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否只读',
            fieldName: 'readonly',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      },
    ]
  },
  {
    name: '地区选择',
    type: 'form-area',
    formItem: '1',
    inputData: true,
    eventList: '变更事件',
    fieldList: '内容',
    defaultObject: true,
    styleList: [
      {
        type: 'group',
        name: '电脑端设置',
        children: [
          {
            name: '尺寸',
            fieldName: 'size',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '默认', key: ''},
              {value: '大型', key: 'large'},
              {value: '中型', key: 'default'},
              {value: '小型', key: 'small'}
            ]
          },
          {
            name: '占位文本',
            fieldName: 'placeholder',
            fieldType: 'input',
            default: '--请选择--',
            description: '输入框占位文本'
          },
          {
            name: '默认值',
            fieldName: 'default',
            fieldType: 'area-select',
            default: ''
          },
          {
            name: '完整路径',
            fieldName: 'showAllLevels',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '可否搜索',
            fieldName: 'filterable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '清除按钮',
            fieldName: 'clearable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      },
      {
        type: 'group',
        name: '应用设置',
        children: [
          {
            name: '占位文本',
            fieldName: 'placeholder',
            fieldType: 'input',
            default: '--请选择--',
            description: '输入框占位文本'
          },
          {
            name: '默认值',
            fieldName: 'default',
            fieldType: 'area-select',
            default: ''
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '清除按钮',
            fieldName: 'clearable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'readonly',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      }
    ]
  },
  {
    name: '区划选择',
    type: 'form-region-tree',
    formItem: '1',
    inputData: true,
    fieldList: '内容',
    eventList: '初始化事件,变更事件',
    defaultObject: true,
    styleList: [
      {
        type: 'group',
        name: '组件设置',
        children: [
          {
            name: '尺寸',
            fieldName: 'size',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '默认', key: ''},
              {value: '大型', key: 'large'},
              {value: '中型', key: 'default'},
              {value: '小型', key: 'small'}
            ]
          },
          {
            name: '占位文本',
            fieldName: 'placeholder',
            fieldType: 'input',
            default: '--请选择--',
            description: '输入框占位文本'
          },
          {
            name: '默认值',
            fieldName: 'default',
            fieldType: 'region-tree',
            default: '',
            multiple: data => !!data['multiple']
          },
          {
            name: '可否多选',
            fieldName: 'multiple',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '清除按钮',
            fieldName: 'clearable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      }
    ]
  },
  {
    name: '单位选择',
    type: 'form-unit-tree',
    formItem: '1',
    inputData: true,
    fieldList: '内容',
    eventList: '初始化事件,变更事件',
    defaultObject: true,
    styleList: [
      {
        type: 'group',
        name: '组件设置',
        children: [
          {
            name: '尺寸',
            fieldName: 'size',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '默认', key: ''},
              {value: '大型', key: 'large'},
              {value: '中型', key: 'default'},
              {value: '小型', key: 'small'}
            ]
          },
          {
            name: '占位文本',
            fieldName: 'placeholder',
            fieldType: 'input',
            default: '--请选择--',
            description: '输入框占位文本'
          },
          {
            name: '默认值',
            fieldName: 'default',
            fieldType: 'unit-tree',
            default: '',
            multiple: data => !!data['multiple']
          },
          {
            name: '可否多选',
            fieldName: 'multiple',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '清除按钮',
            fieldName: 'clearable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      }
    ]
  },
  {
    name: '部门选择',
    type: 'form-organization-tree',
    formItem: '1',
    inputData: true,
    fieldList: '内容',
    eventList: '初始化事件,变更事件',
    defaultObject: true,
    styleList: [
      {
        type: 'group',
        name: '组件设置',
        children: [
          {
            name: '尺寸',
            fieldName: 'size',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '默认', key: ''},
              {value: '大型', key: 'large'},
              {value: '中型', key: 'default'},
              {value: '小型', key: 'small'}
            ]
          },
          {
            name: '占位文本',
            fieldName: 'placeholder',
            fieldType: 'input',
            default: '--请选择--',
            description: '输入框占位文本'
          },
          {
            name: '默认值',
            fieldName: 'default',
            fieldType: 'organization-tree',
            default: '',
            multiple: data => !!data['multiple']
          },
          {
            name: '可否多选',
            fieldName: 'multiple',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '清除按钮',
            fieldName: 'clearable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      }
    ]
  },
  {
    name: '人员选择',
    type: 'form-employee-tree',
    formItem: '1',
    inputData: true,
    fieldList: '内容',
    eventList: '初始化事件,变更事件',
    defaultObject: true,
    styleList: [
      {
        type: 'group',
        name: '组件设置',
        children: [
          {
            name: '尺寸',
            fieldName: 'size',
            fieldType: 'buttons',
            default: '',
            options: [
              {value: '默认', key: ''},
              {value: '大型', key: 'large'},
              {value: '中型', key: 'default'},
              {value: '小型', key: 'small'}
            ]
          },
          {
            name: '占位文本',
            fieldName: 'placeholder',
            fieldType: 'input',
            default: '--请选择--',
            description: '输入框占位文本'
          },
          {
            name: '默认值',
            fieldName: 'default',
            fieldType: 'employee-tree',
            default: '',
            multiple: data => !!data['multiple']
          },
          {
            name: '可否多选',
            fieldName: 'multiple',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否必填',
            fieldName: 'required',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '清除按钮',
            fieldName: 'clearable',
            fieldType: 'switch',
            default: true,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          },
          {
            name: '是否禁用',
            fieldName: 'disabled',
            fieldType: 'switch',
            default: false,
            options: [
              {value: '', key: true},
              {value: '', key: false}
            ]
          }
        ]
      }
    ]
  }
]